package com.project.service;

import com.project.dto.CinemaDto;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @Author(王思翰)
 * @Description(类的描述)
 * @Date(创建时间) 2021/9/7 16:55
 */
@FeignClient(name = "cinemaSys")
public interface CinemaRemoteService {

    @GetMapping("cinema/findByAll")
    public List<CinemaDto> findByAll();

    @GetMapping("cinema/updateNumber/{id}")
    public boolean updateNumber(@PathVariable("id") int id);

    @GetMapping("cinema/addOrder/{id}/{name}/{money}")
    public String addOrder(@PathVariable("id") int id
            ,@PathVariable("name") String name
            ,@PathVariable("money") int money);
}
